/*To/MYDmzq+M+2MlPSWM+EA0RiAoeOuSBqdqrXqQ/4c/BGy5twx6peEZ7nAXRfcG7*/
/*
 * @Descripttion: 财务信息 采购信息 编辑卡片渲染内容
 * @version:
 * @Author: Chendch
 * @Date: 2020-11-26 14:41:57
 * @LastEditors: Chendch
 * @LastEditTime: 2020-12-25 10:48:43
 */
import {constProp} from "../CONSTANCE";
import {financeOrStockFormAfterEvent, financeOrStockFormBeforeEvent} from "../events";
import {onFinanceOrPurchaseCardButtonClick} from './../events/clickEvent/SupCardButtonAction';
function renderContentArea(moduleId) {
    const {form,button} = this.props;
    const {createForm} = form;
    const {createButtonApp} = button;
    let formId = moduleId=='finance'?constProp.SUPFINANCE_CARD:constProp.SUPSTOCK_CARD;
    return (
        <div className="nc-bill-top-area">
            <div className="nc-bill-header-area">
                <div className="header-button-area">
                    {createButtonApp({
                        area:constProp.SUPFINANCE_CARD,
                        buttonLimit: 3,
                        onButtonClick: onFinanceOrPurchaseCardButtonClick.bind(this,moduleId),
                        popContainer: document.querySelector('.'+constProp.SUPFINANCE_CARD)
                    })}
                </div>
            </div>
            <div className="nc-bill-form-area">
                {createForm(formId,{
                    onAfterEvent: financeOrStockFormAfterEvent.bind(this),
                    onBeforeEvent: financeOrStockFormBeforeEvent.bind(this)
                    }
                )}
            </div>
        </div>
    );
}

export {
    renderContentArea
}
/*To/MYDmzq+M+2MlPSWM+EA0RiAoeOuSBqdqrXqQ/4c/BGy5twx6peEZ7nAXRfcG7*/
